package com.itheima.condtion;

import com.itheima.condtion.pojo.User;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class SpringBootCondtionApplication {

	public static void main(String[] args) {
		ConfigurableApplicationContext context = SpringApplication.run(SpringBootCondtionApplication.class, args);
		//不在同一级目录，要获取bean
		User user = context.getBean(User.class);
		System.out.println(user);

	}

}
